import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '首页',
      component: () => import('@/views/Index.vue'),
      meta: {auth: true}
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('@/views/Login.vue'),
      meta: {auth: false}
    },
    {
      path: '/adhibition',
      name: '实战应用',
      component: () => import('@/views/adhibition.vue'),
      redirect: '/people',
      children: [
        {
          path: '/people',
          name: '人',
          component: () => import('@/views/shizhanyingyong/People.vue'),
          meta: {auth: true, id: '600974767012552706'}
        },
        {
          path: '/house',
          name: '房',
          component: () => import('@/views/shizhanyingyong/House.vue'),
          meta: {auth: true, id: '600965385315000321'}
        },
        {
          path: '/organize',
          name: '实战应用-组织',
          component: () => import('@/views/shizhanyingyong/Organize.vue'),
          meta: {auth: true, id: '600982756347977729'}
        },
        {
          path: '/matter',
          name: '事',
          component: () => import('@/views/shizhanyingyong/Matter.vue'),
          meta: {auth: true, id: '600983065245884418'}
        },
        {
          path: '/things',
          name: '物',
          component: () => import('@/views/shizhanyingyong/Things.vue'),
          meta: {auth: true, id: '600983345907736578'}
        }
      ]
    },
    {
      path: '/bigData',
      component: () => import('@/views/BigData.vue'),
      meta: {auth: true},
      redirect: '/zongzhi',
      children: [
        {
          path: '/zongzhi',
          name: '综治组织及业务',
          component: () => import('@/views/shizhandashuju/ZongZhi.vue'),
          meta: {auth: true, id: '585797855898316802'}
        },
        {
          path: '/shiyourenkou',
          name: '实有人口',
          component: () => import('@/views/shizhandashuju/Shiyourenkou.vue'),
          meta: {auth: true, id: '585851643468263426'}
        },
        {
          path: '/teshurenqun',
          name: '特殊人群',
          component: () => import('@/views/shizhandashuju/Teshurenqun.vue'),
          meta: {auth: true, id: '587653106217545730'}
        },
        {
          path: '/qingshaonian',
          name: '重点青少年',
          component: () => import('@/views/shizhandashuju/Qingshaonian.vue'),
          meta: {auth: true, id: '587934944160935938'}
        },
        {
          path: '/contradictionAnalysis',
          name: '矛盾纠纷排查化解',
          component: () => import('@/views/shizhandashuju/ContradictionAnalysis.vue'),
          meta: {auth: true, id: '588281152704434178'}
        },
        {
          path: '/schoolAnalysis',
          name: '校园及周边安全',
          component: () => import('@/views/shizhandashuju/SchoolAnalysis.vue'),
          meta: {auth: true, id: '588281636764864513'}
        },
        {
          path: '/roadAnalysis',
          name: '护路护线大数据',
          component: () => import('@/views/shizhandashuju/RoadAnalysis.vue'),
          meta: {auth: true, id: '588282013388197889'}
        },
        {
          path: '/shehuizhian',
          name: '社会治安',
          component: () => import('@/views/shizhandashuju/Shehuizhian.vue'),
          meta: {auth: true, id: '587951323761111042'}
        },
        {
          path: '/feigongyouzhi',
          name: '非公有制经济组织大数据',
          component: () => import('@/views/shizhandashuju/Feigongyouzhi.vue'),
          meta: {auth: true, id: '588037291272859649'}
        }
      ]
    },
    {
      path: '/modules',
      component: () => import('@/views/Modules.vue'),
      meta: {auth: true},
      children: [
        {
          path: '/',
          name: '模块首页',
          component: () => import('@/views/Template.vue'),
          meta: {auth: true}
        },
        {
          path: '/waterDataAnalysis',
          name: '水域数据分析',
          component: () => import('@/views/fangniguanli/WaterDataAnalysis.vue'),
          meta: {auth: true}
        },
        {
          path: '/backlogEvent',
          name: '受理派遣 ',
          component: () => import('@/views/shijianguanli/BacklogEvent.vue'),
          meta: {auth: true, id: '576700593796644866'}
        },
        {
          path: '/eventDataAnalysis',
          name: '事件数据分析',
          component: () => import('@/views/shijianguanli/EventDataAnalysis.vue'),
          meta: {auth: true}
        },
        {
          path: '/historicEvent',
          name: '经办事件',
          component: () => import('@/views/shijianguanli/HistoricEvent.vue'),
          meta: {auth: true, id: '576701653479161858'}
        },
        {
          path: '/eventReportSample',
          name: '事件上报',
          component: () => import('@/views/shijianguanli/EventReportSample.vue'),
          meta: {auth: true, id: '593379570812502018'}
        },
        {
          path: '/directEventReport',
          name: '事件直报',
          component: () => import('@/views/shijianguanli/DirectEventReport.vue'),
          meta: {auth: true, id: '605325617503793153'}
        },
        {
          path: '/eventFeedback',
          name: '处置反馈',
          component: () => import('@/views/shijianguanli/EventFeedback.vue'),
          meta: {auth: true, id: '581449277608374273'}
        },
        {
          path: '/eventSupervision',
          name: '督察督办 ',
          component: () => import('@/views/shijianguanli/EventSupervision.vue'),
          meta: {auth: true, id: '593401298838106113'}
        },
        {
          path: '/eventExamine',
          name: '考核计分',
          component: () => import('@/views/shijianguanli/EventExamine.vue'),
          meta: {auth: true, id: '596719104149196801'}
        },
        {
          path: '/eventPigeonhole',
          name: '结案归档',
          component: () => import('@/views/shijianguanli/EventPigeonhole.vue'),
          meta: {auth: true, id: '596728677727768578'}
        },
        {
          path: '/drownControl',
          name: '水域信息',
          component: () => import('@/views/fangniguanli/DrownControl.vue'),
          meta: {auth: true, id: '567404241071702018'}
        },
        {
          path: '/waterMap',
          name: '水域信息地图模式',
          component: () => import('@/views/fangniguanli/WaterMap.vue'),
          meta: {auth: true, id: '568079477829046273'}
        },
        {
          path: '/compresiveOrg',
          name: '综治中心组织',
          component: () => import('@/views/zongzhi/orgbusiness/CompresiveOrg.vue'),
          meta: {auth: true, id: '557933521951346690'}
        },
        {
          path: '/zteamTable',
          name: '综治中心队伍',
          component: () => import('@/views/zongzhi/orgbusiness/ZteamTable.vue'),
          meta: {auth: true, id: '560111557622738946'}
        },
        {
          path: '/massesOrg',
          name: '群防群治组织',
          component: () => import('@/views/zongzhi/orgbusiness/MassesOrg.vue'),
          meta: {auth: true, id: '557934302720995330'}
        },
        {
          path: '/massesTeam',
          name: '群防群治队伍',
          component: () => import('@/views/zongzhi/orgbusiness/MassesTeam.vue'),
          meta: {auth: true, id: '561480912839192578'}
        },
        {
          path: '/webCenter',
          name: '综治视联网信息中心',
          component: () => import('@/views/zongzhi/orgbusiness/WebCenter.vue'),
          meta: {auth: true, id: '560112098276913154'}
        },
        {
          path: '/countrysideVideo',
          name: '城乡社区公共安全视频监控',
          component: () => import('@/views/zongzhi/orgbusiness/CountrysideVideo.vue'),
          meta: {auth: true, id: '560112098276913154'}
        },
        {
          path: '/gridBuild',
          name: '网格化建设',
          component: () => import('@/views/grid/wanggeduiwu/GridMember.vue'),
          meta: {auth: true, id: '560742493783638018'}
        },
        {
          path: '/gridDivision',
          name: '网格划分',
          component: () => import('@/views/setting/Grid.vue'),
          meta: {auth: true, id: '562232651943055362'}
        },
        {
          path: '/buildingMaster',
          name: '楼栋长',
          component: () => import('@/views/zongzhi/orgbusiness/BuildingMaster.vue'),
          meta: {auth: true, id: '560113596964646914'}
        },
        {
          path: '/leaderSystem',
          name: '综治领导责任制',
          component: () => import('@/views/zongzhi/orgbusiness/LeaderSystem.vue'),
          meta: {auth: true, id: '560112627245756417'}
        },
        {
          path: '/censusRegister',
          name: '户籍人口',
          component: () => import('@/views/population/CensusRegister.vue'),
          meta: {auth: true, id: '558201839509639169'}
        },
        {
          path: '/movingPopulation',
          name: '流动人口',
          component: () => import('@/views/population/MovingPopulation.vue'),
          meta: {auth: true, id: '558943658405076994'}
        },
        {
          path: '/leftoverChildren',
          name: '留守人口',
          component: () => import('@/views/population/LeftoverChildren.vue'),
          meta: {auth: true, id: '560114114319462401'}
        },
        {
          path: '/overseasPeople',
          name: '境外人员',
          component: () => import('@/views/population/OverseasPeople.vue'),
          meta: {auth: true, id: '560114001362661377'}
        },
        {
          path: '/rentalHousing',
          name: '出租房',
          component: () => import('@/views/population/RentalHousing.vue'),
          meta: {auth: true, id: '560113800530997250'}
        },
        {
          path: '/emancipist',
          name: '刑满释放人员',
          component: () => import('@/views/zongzhi/specialcrowd/Emancipist.vue'),
          meta: {auth: true, id: '560114450480345090'}
        },
        {
          path: '/socialCorrector',
          name: '社会矫正人员',
          component: () => import('@/views/zongzhi/specialcrowd/SocialCorrector.vue'),
          meta: {auth: true, id: '560114532135055362'}
        },
        {
          path: '/mentallyDisturbed',
          name: '精神障碍患者',
          component: () => import('@/views/zongzhi/specialcrowd/MentallyDisturbed.vue'),
          meta: {auth: true, id: '560114645716807681'}
        },
        {
          path: '/junker',
          name: '吸毒人员',
          component: () => import('@/views/zongzhi/specialcrowd/Junker.vue'),
          meta: {auth: true, id: '560114717573623809'}
        },
        {
          path: '/adisPatient',
          name: '艾滋病危险人员',
          component: () => import('@/views/zongzhi/specialcrowd/AdisPatient.vue'),
          meta: {auth: true, id: '560114811941269506'}
        },
        {
          path: '/keyTeenager',
          name: '闲散青少年',
          component: () => import('@/views/zongzhi/keyteenager/KeyTeenager.vue'),
          meta: {auth: true, id: '560114978396418050'}
        },
        {
          path: '/misconductTeenager',
          name: '不良行为青少年',
          component: () => import('@/views/zongzhi/keyteenager/MisconductTeenager.vue'),
          meta: {auth: true, id: '578853111976763393'}
        },
        {
          path: '/juvenilesWanderers',
          name: '流浪乞讨未成年人',
          component: () => import('@/views/zongzhi/keyteenager/JuvenilesWanderers.vue'),
          meta: {auth: true, id: '578853542253633537'}
        },
        {
          path: '/termerChildren',
          name: '服刑人员未成年子女',
          component: () => import('@/views/zongzhi/keyteenager/TermerChildren.vue'),
          meta: {auth: true, id: '578853950216806402'}
        },
        {
          path: '/villageLeftChildren',
          name: '农村留守儿童',
          component: () => import('@/views/zongzhi/keyteenager/VillageLeftChildren.vue'),
          meta: {auth: true, id: '578854167578222594'}
        },
        {
          path: '/otherTeenager',
          name: '其他青少年',
          component: () => import('@/views/zongzhi/keyteenager/OtherTeenager.vue'),
          meta: {auth: true, id: '578854443894775809'}
        },
        {
          path: '/nonPublic',
          name: '非公有制经济组织',
          component: () => import('@/views/zongzhi/liangxinzuzhi/NonPublic.vue'),
          meta: {auth: true, id: '560115248174051329'}
        },
        {
          path: '/socialOrganization',
          name: '社会组织',
          component: () => import('@/views/zongzhi/liangxinzuzhi/SocialOrganization.vue'),
          meta: {auth: true, id: '560115344953421826'}
        },
        {
          path: '/areaRenovate',
          name: '重点地区排查整治',
          component: () => import('@/views/zongzhi/shehuizhian/AreaRenovate.vue'),
          meta: {auth: true, id: '560115544778452994'}
        },
        {
          path: '/homicideCase',
          name: '命案防控',
          component: () => import('@/views/zongzhi/shehuizhian/HomicideCase.vue'),
          meta: {auth: true, id: '560115672704724994'}
        },
        {
          path: '/criminalSuspect',
          name: '犯罪嫌疑人',
          component: () => import('@/views/zongzhi/shehuizhian/CriminalSuspect.vue'),
          meta: {auth: true, id: '570174530581463041'}
        },
        {
          path: '/victim',
          name: '受害人',
          component: () => import('@/views/zongzhi/shehuizhian/Victim.vue'),
          meta: {auth: true, id: '570183399462481921'}
        },
        {
          path: '/expressage',
          name: '寄递物流安全管理',
          component: () => import('@/views/zongzhi/shehuizhian/Expressage.vue'),
          meta: {auth: true, id: '560115740514037761'}
        },
        {
          path: '/bigCase',
          name: '重特大案（事）件',
          component: () => import('@/views/zongzhi/shehuizhian/BigCase.vue'),
          meta: {auth: true, id: '560116047587422210'}
        },
        {
          path: '/ContradictionReport',
          name: '排查登记',
          component: () => import('@/views/zongzhi/maoduntiaojie/ContradictionReport.vue'),
          meta: {auth: true, id: '597019382316658690'}
        },
        {
          path: '/contradiction',
          name: '受理派遣',
          component: () => import('@/views/zongzhi/maoduntiaojie/Contradiction.vue'),
          meta: {auth: true, id: '560116349942214658'}
        },
        {
          path: '/contradictionHistory',
          name: '经办事项',
          component: () => import('@/views/zongzhi/maoduntiaojie/ContradictionHistory.vue'),
          meta: {auth: true, id: '572068686352986114'}
        },
        {
          path: '/Supervisory',
          name: '督察督办',
          component: () => import('@/views/zongzhi/maoduntiaojie/Supervisory.vue'),
          meta: {auth: true, id: '596712873292476418'}
        },
        {
          path: '/Examine',
          name: '考核评价',
          component: () => import('@/views/zongzhi/maoduntiaojie/Examine.vue'),
          meta: {auth: true, id: '596975702230798338'}
        },
        {
          path: '/school',
          name: '学校',
          component: () => import('@/views/zongzhi/xiaoyuanzhoubian/School.vue'),
          meta: {auth: true, id: '560116886192369666'}
        },
        {
          path: '/peopleAround',
          name: '校园周边重点人员',
          component: () => import('@/views/zongzhi/xiaoyuanzhoubian/PeopleAround.vue'),
          meta: {auth: true, id: '560116970107809794'}
        },
        {
          path: '/involvingCase',
          name: '涉及师生安全案件',
          component: () => import('@/views/zongzhi/xiaoyuanzhoubian/InvolvingCase.vue'),
          meta: {auth: true, id: '560117090161373186'}
        },
        {
          path: '/roadConvenient',
          name: '护路护线',
          component: () => import('@/views/zongzhi/huluhuxian/RoadConvenient.vue'),
          meta: {auth: true, id: '560117293836775426'}
        },
        {
          path: '/involvingRoad',
          name: '涉及线、路案（事）件',
          component: () => import('@/views/zongzhi/huluhuxian/InvolvingRoad.vue'),
          meta: {auth: true, id: '560117380012945409'}
        },
        {
          path: '/region',
          name: '行政区',
          component: () => import('@/views/setting/Region.vue'),
          meta: {auth: true, id: '558295125255553026'}
        },
        {
          path: '/dept',
          name: '部门',
          component: () => import('@/views/setting/Dept.vue'),
          meta: {auth: true, id: '558295230343839745'}
        },
        {
          path: '/user',
          name: '用户',
          component: () => import('@/views/setting/User.vue'),
          meta: {auth: true, id: '558295297775665154'}
        },
        {
          path: '/grid',
          name: '网格',
          component: () => import('@/views/setting/Grid.vue'),
          meta: {auth: true, id: '557890336080388097'}
        },
        {
          path: '/organization',
          name: '组织',
          component: () => import('@/views/setting/Organization.vue'),
          meta: {auth: true, id: '580773463489310722'}
        },
        {
          path: '/notice',
          name: '通知公告',
          component: () => import('@/views/setting/Notice.vue'),
          meta: {auth: true, id: '602153242515849218'}
        },
        {
          path: '/organizationTeam',
          name: '队伍',
          component: () => import('@/views/setting/OrganizationTeam.vue'),
          meta: {auth: true, id: '581144062451593217'}
        },
        {
          path: '/divideGrid',
          name: '网格划分 ',
          component: () => import('@/views/setting/Grid.vue'),
          meta: {auth: true, id: '562232651943055362'}
        },
        {
          path: '/gridBuildDataPattern',
          name: '数据模式',
          component: () => import('@/views/grid/wanggejianshe/GridBuildDataPattern.vue'),
          meta: {auth: true, id: '562236440422977537'}
        },
        {
          path: '/gridBuildMapPattern',
          name: '地图模式',
          component: () => import('@/views/grid/wanggejianshe/GridBuildMapPattern.vue'),
          meta: {auth: true, id: '562236242493771778'}
        },
        {
          path: '/gridMember',
          name: '网格员管理',
          component: () => import('@/views/grid/wanggeduiwu/GridMember.vue'),
          meta: {auth: true, id: '560742493783638018'}
        },
        {
          path: '/signList',
          name: '签到列表',
          component: () => import('@/views/grid/wanggeduiwu/SignList.vue'),
          meta: {auth: true, id: '562239457742360578'}
        },
        {
          path: '/realtimeLocation',
          name: '实时定位',
          component: () => import('@/views/grid/wanggeduiwu/RealtimeLocation.vue'),
          meta: {auth: true, id: '562239579616251905'}
        },
        {
          path: '/cruiseRecord',
          name: '巡格记录',
          component: () => import('@/views/grid/wanggeduiwu/CruiseRecord.vue'),
          meta: {auth: true, id: '602889607335477250'}
        },
        {
          path: '/signIntegral',
          name: '签到积分',
          component: () => import('@/views/grid/wanggeduiwu/SignIntegral.vue'),
          meta: {auth: true, id: '562239692304617474'}
        },
        {
          path: '/plotManage',
          name: '小区管理',
          component: () => import('@/views/grid/fangwuguanli/PlotManage.vue'),
          meta: {auth: true, id: '562239995594739713'}
        },
        {
          path: '/buildingManage',
          name: '楼栋管理',
          component: () => import('@/views/grid/fangwuguanli/BuildingManage.vue'),
          meta: {auth: true, id: '562240704549556226'}
        },
        {
          path: '/houseManage',
          name: '房屋管理',
          component: () => import('@/views/grid/fangwuguanli/HouseManage.vue'),
          meta: {auth: true, id: '562240869549281282'}
        },
        {
          path: '/courtyardManage',
          name: '院落管理',
          component: () => import('@/views/grid/fangwuguanli/CourtyardManage.vue'),
          meta: {auth: true, id: '581077516177977346'}
        },
        {
          path: '/unitMessage',
          name: '部件信息',
          component: () => import('@/views/grid/bujianguanli/UnitMessage.vue'),
          meta: {auth: true, id: '562243407984005121'}
        },
        {
          path: '/recommendAudit',
          name: '推荐审核',
          component: () => import('@/views/grid/minqingrizhi/RecommendAudit.vue'),
          meta: {auth: true, id: '562243672388734978'}
        },
        {
          path: '/customsLog',
          name: '民情日志',
          component: () => import('@/views/grid/minqingrizhi/CustomsLog.vue'),
          meta: {auth: true, id: '562243765166739457'}
        },
        {
          path: '/integralType',
          name: '积分类型管理',
          component: () => import('@/views/grid/jifenkaohe/IntegralType.vue'),
          meta: {auth: true, id: '591193986408968194'}
        },
        {
          path: '/personageIntegral',
          name: '个人积分管理',
          component: () => import('@/views/grid/jifenkaohe/PersonageIntegral.vue'),
          meta: {auth: true, id: '591304531803938818'}
        },
        {
          path: '/personageIntegral',
          name: '个人积分',
          component: () => import('@/views/grid/jifenkaohe/PersonageIntegral.vue'),
          meta: {auth: true, id: '592781963757092866'}
        },
        {
          path: '/personageIntegralType',
          name: '个人积分类型',
          component: () => import('@/views/grid/jifenkaohe/PersonageIntegralType.vue'),
          meta: {auth: true, id: '592784118299754497'}
        },
        {
          path: '/deptIntegal',
          name: '部门积分管理',
          component: () => import('@/views/grid/jifenkaohe/DeptIntegal.vue'),
          meta: {auth: true, id: '591647954863988737'}
        },
        {
          path: '/deptIntegal',
          name: '部门积分',
          component: () => import('@/views/grid/jifenkaohe/DeptIntegal.vue'),
          meta: {auth: true, id: '592685064848957441'}
        },
        {
          path: '/deptIntegalType',
          name: '部门积分类型',
          component: () => import('@/views/grid/jifenkaohe/DeptIntegalType.vue'),
          meta: {auth: true, id: '592720223795175425'}
        },
        {
          path: '/integralPersonalDetail',
          name: '个人积分变动明细',
          component: () => import('@/views/grid/jifenkaohe/IntegralPersonalDetail.vue'),
          meta: {auth: true, id: '591654767437094913'}
        },
        {
          path: '/integralDeptDetail',
          name: '部门积分变动明细',
          component: () => import('@/views/grid/jifenkaohe/IntegralDeptDetail.vue'),
          meta: {auth: true, id: '595172152207069185'}
        },
        {
          path: '/logUserActions',
          name: '记录用户操作日志',
          component: () => import('@/views/setting/LogUserActions.vue'),
          meta: {auth: true, id: '577819734485061634'}
        },
        {
          path: '/nationalStandardDictionary',
          name: '国标字典',
          component: () => import('@/views/setting/NationalStandardDictionary.vue'),
          meta: {auth: true, id: '577867157401378817'}
        }
      ]
    },
    {
      path: '*',
      redirect: '/'
    }
  ]
})
